function ImageManage(doc, container, width, height, user, date, options, object) {
  this._doc = doc;
  this._container = container;
  this._width = (width) ? width : '800';
  this._height = (height) ? height : '261';
  this._user = user;
  this._date = date;
  this._options = options;
  this._object = object;

  this._unique = MiscUtils.unique();
  this._createElements();
  this._gui = AbsImageManage.gui(this._unique);
}

ImageManage.prototype._createElements = function() {
  var table, tr, td;
  
  table = this._doc.createElement('table');
  table.style.width = this._width + 'px';
  table.style.height = this._height + 'px';
  table.cellPadding = 0;
  table.cellSpacing = 0;
  this._container.appendChild(table);
  
  tr = table.insertRow(-1);
  td = tr.insertCell(-1);
  td.align = 'left';
  td.style.width = '50px';
  td.style.verticalAlign= 'middle';
  var prev = this._doc.createElement('img');
  prev.src  ='_test/images/pre.png';
  prev.style.cursor = 'pointer';
  prev.id = this._unique + '_prev_button';
  td.appendChild(prev);
  
  td = tr.insertCell(-1);
  td.style.width = this._object.width + 'px';
  td.style.height = this._object.height + 'px';
  var div = document.createElement('div');
  div.style.width = this._object.width + 'px';
  div.style.height = this._object.height + 'px';
  div.id = this._unique + '_image_div';
  div.style.position = 'relative';
  var div1 = document.createElement('div');
  div1.id = this._unique + '_image_loading';
  var img = this._doc.createElement('img');
  img.id = this._unique + '_image';
  img.src = this._object.link;
  div1.appendChild(img);
  div.appendChild(div1);
//  var div1 = document.createElement('div');
////  div1.id = 'slides';
//  div1.id = 'slider';
//  var ul = document.createElement('ul');
//  div1.appendChild(ul);
//  for (var i = 0, il = this._images.length; i < il; i++) {
//    var image = this._images[i];
//    var li = document.createElement('li');
//    ul.appendChild(li);
//    var a = document.createElement('a');
//    a.href = '#';
//    li.appendChild(a);
//    var img = this._doc.createElement('img');
//    img.id = this._unique + '_' + i + '_image';
//    img._image = image;
//    img.src = image.link;
//    a.appendChild(img);
//  }
//  div.appendChild(div1);
  td.appendChild(div);
  
  td = tr.insertCell(-1);
  td.align = 'right';
  td.style.width = '50px';
  td.style.verticalAlign= 'middle';
  var next = this._doc.createElement('img');
  next.src  ='_test/images/nex.png';
  next.style.cursor = 'pointer';
  next.id = this._unique + '_next_button';
  td.appendChild(next);
  
  tr = table.insertRow(-1);
  td = tr.insertCell(-1);
  td = tr.insertCell(-1);
  var note = document.createElement('input');
  note.type = 'button';
  note.value = 'Add Note';
  note.id = this._unique + '_note_button';
  td.appendChild(note);
  var note = document.createElement('input');
  note.type = 'button';
  note.value = 'Add Number';
  note.id = this._unique + '_number_button';
  td.appendChild(note);
  var note = document.createElement('input');
  note.type = 'button';
  note.value = 'Add Line';
  note.id = this._unique + '_line_button';
  td.appendChild(note);
  td = tr.insertCell(-1);
};
